import Rest from './request'
// 添加
export const addList = async (data:any) => {
    let src = await Rest.post('/list',data)
    return src.data
}
export function getList(){
    return Rest.get('/list')
}
export function changestatus(id:number,data:any){
    return Rest.put('/list/'+id,data)
}
export function delList(id:number){
    return Rest.delete('/list/'+id)
}